package com.team.employment.model.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.fasterxml.jackson.annotation.JsonValue;

public enum UserType implements BaseEnum {

    ADMIN(1, "管理员"),

    ENTREPRENEURS(2, "企业者"),

    STUDENT(3,"学生"),

    STATUTORY(4,"法定人");

    @EnumValue
    @JsonValue
    private Integer code;
    private String name;

    @Override
    public Integer getCode() {
        return this.code;
    }


    @Override
    public String getName() {
        return name;
    }

    UserType(Integer code, String name) {
        this.code = code;
        this.name = name;
    }


}
